// 模块 2
import { CHANGE_BANNER_LIST, CHANGE_PRO_LIST } from '../types'
const reducer = (state = {
    // 全局数据
    bannerList: [],
    proList: []
}, action) => {
    switch (action.type) {
        case CHANGE_BANNER_LIST:

            return { ...state, bannerList: action.payload }
        case CHANGE_PRO_LIST:

            return { ...state, proList: action.payload }
        default:
            return state
    }
}

export default reducer